package gui;

import java.awt.Graphics;
import java.awt.Point;

import body.IPainting;

public class MouseOval implements IPainting{

	public Point p3 = new Point();
	
	/**
	 * 最大半径
	 */
	public static final int RADIUS = 30;
	
	/**
	 * 初始化大小
	 */
	private int initial = 0;
	
	public void setInitial(){
		initial = 0;
	}
	
	@Override
	public void draw(Graphics g) {
		initial++;
		if(initial > RADIUS){
			return;
		}
		g.drawOval(p3.x - initial/2, p3.y - initial/4, initial, initial/2);
	}

}
